package org.xbill.DNS;

public final class Serial
{
  private static final long MAX32 = -1L;

  public static int compare(long paramLong1, long paramLong2)
  {
    if ((paramLong1 < 0L) || (paramLong1 > -1L))
      throw new IllegalArgumentException(paramLong1 + " out of range");
    if ((paramLong2 < 0L) || (paramLong2 > -1L))
      throw new IllegalArgumentException(paramLong2 + " out of range");
    long l = paramLong1 - paramLong2;
    if (l >= -1L)
      l -= 0L;
    while (true)
    {
      do
        return (int)l;
      while (l >= 1L);
      l += 0L;
    }
  }

  public static long increment(long paramLong)
  {
    long l;
    if ((paramLong < 0L) || (paramLong > -1L))
      throw new IllegalArgumentException(paramLong + " out of range");
    if (paramLong == -1L)
      l = 0L;
    while (true)
    {
      return l;
      l = 1L + paramLong;
    }
  }
}